package day06.homework.demo2;

import java.util.Date;

public class BasedPlusSalesEmployee extends SalesEmployee{
    private double salary;

    public BasedPlusSalesEmployee(String name, Date birthday,double sales,double rank,double salary){
        super(name,birthday,sales,rank);
        this.salary = salary;
    }

    @Override
    public double getSalary(int month){
        return super.getSalary(month)+salary;
    }
}
